package com.fh.shop.admin.biz.user;

import com.fh.shop.admin.common.DataTableResult;
import com.fh.shop.admin.common.ServerResponse;
import com.fh.shop.admin.param.user.UserAddParam;
import com.fh.shop.admin.param.user.UserQueryParam;
import com.fh.shop.admin.param.user.UserUpdateParam;
import com.fh.shop.admin.po.user.User;
import com.fh.shop.admin.param.user.UserPasswordParam;

import java.util.Map;

public interface IUserService {
    ServerResponse addUser(UserAddParam userAddParam);

    DataTableResult findList(UserQueryParam userQueryParam);

    ServerResponse findUserById(Long id);

    ServerResponse updateUser(UserUpdateParam userUpdateParam, String realPath);

    ServerResponse deleteUser(Long id,String realPath);

    ServerResponse deleteBatch(String ids,String realPath);

    User findUserByUserName(String userName);

    ServerResponse updatePwd(UserPasswordParam userPasswordParam);

    Map<String, Object> findUser(Long userId);
}
